package Entity;
import java.util.List;

import javax.persistence.*;

@Entity
@Table (name = "MesaCompuesta")
public class MesaCompuestaEntity extends MesaEntity {

	private static final long serialVersionUID = 1L;
	
	@Transient
	@OneToMany
	@Column (name = "idMesaConforma") @JoinColumn (name = "idMesa")
	private List<MesaSimpleEntity> MesaCompone;

	public List<MesaSimpleEntity> getMesaCompone() {
		return MesaCompone;
	}

	public void setMesaCompone(List<MesaSimpleEntity> mesaCompone) {
		MesaCompone = mesaCompone;
	}
}

